<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
	layout:decorate="~{admin/common/common}">
<head>
<title>门禁用户</title>
</head>

<body layout:fragment="content">
	<form id="myForm" th:action="@{/doorUser/list}" th:method="get">
		<div class="page-container">
			<div class="cl pd-5 bg-1 bk-gray">
				<span class="l" sa:hasPermission="role:add"> <a
					class="btn btn-primary radius" href="javascript:;"
					th:onclick="'javascript:admin_role_add(\'添加角色\',\'/doorUser/add\',\'600\',\'350\');'"><i
						class="Hui-iconfont">&#xe600;</i> 添加门禁人员</a>
				</span>
			</div>
			<table class="table table-border table-bordered table-hover table-bg">
				<thead>
					<tr>
						<th scope="col" colspan="5">门禁用户</th>
					</tr>
					<tr class="text-c">
						<th>用户名称</th>
						<th>性别</th>
						<th>出生日期</th>
						<th>手机号码</th>
						<th width="100">操作</th>
					</tr>
				</thead>
				<tbody>
					<tr class="text-c" th:each="model:${pageInfo?.result}"
						th:object="${model}">
						<td th:text="*{name}">超级管理员</td>
						<td>                  
							<span th:if="*{sex} eq 1">男</span>
	                        <span th:if="*{sex} eq 0">女</span>
	                     </td>
						<td th:text="*{#dates.format(birthDay, 'yyyy-MM-dd HH:mm')}">2014-6-11 11:11:42</td>
						<!--<td><a href="#">admin</a></td>-->
						<td th:text="*{phone}">拥有至高无上的权利</td>
						<td class="f-14">
							<a sa:hasPermission="role:delete" title="删除" href="javascript:;"
							th:onclick="'javascript:admin_role_del(this, \'/doorUser/delete?id='+*{id}+'\');'"
							class="ml-5" style="text-decoration: none"><i
								class="Hui-iconfont">&#xe6e2;</i></a> <!--iconfontyyy--></td>
					</tr>
				</tbody>
			</table>
			<div th:replace="admin/common/page :: page"></div>
		</div>
	</form>

	<script type="text/javascript" th:src="@{/js/common/page.js}"></script>
	<script type="text/javascript"
		th:src="@{/js/admin/manager/admin-role.js}"></script>
</body>
</html>